package com.javaeedev.junit;

public class Cache {

    private char[] buffer = "0000000000".toCharArray();

    public void write(char c) {
        for(int i=0; i<buffer.length; i++)
            buffer[i] = c;
    }

    public char[] read() {
        char[] cs = new char[buffer.length];
        for(int i=0; i<buffer.length; i++)
            cs[i] = buffer[i];
        return cs;
    }
}
